<div data-role="page">
    <div data-role="header">
        <a href="#" data-rel="back" class="ui-btn ui-icon-arrow-l ui-btn-icon-left ui-shadow">返回</a>
        <h1>全局监听事件</h1>
    </div>
    <div role="main" class="ui-content">
        <p>cordova-plugin-broadcaster插件</p>
        <div data-role="collapsible">
            <h1 >注册监听事件</h1>
            <button  onclick="RegisterWatcher()" class="ui-btn ui-btn-a">点击注册监听事件</button>
            <div id="registerWatcherInfo" width="100%"></div>
        </div>
        <div data-role="collapsible">
            <h1>发送监听</h1>
            <button  onclick="WriteAppEvent()" class="ui-btn ui-btn-a">点击发送监听</button>
            <div id="writeAppEventInfo" width="100%"></div>
        </div>
        <div data-role="collapsible">
            <h1>取消监听</h1>
            <button  onclick="UnRegisterWatcher()" class="ui-btn ui-btn-a">点击取消监听</button>
            <div id="unRegisterWatcherInfo" width="100%"></div>
        </div>
    </div>
</div>
